package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_bak_daily")
public class FBakDaily {
    @Id
    private Long tid;

    /**
     * 股票代码
     */
    @Column(name = "ts_code")
    private String tsCode;

    /**
     * 交易日期
     */
    @Column(name = "trade_date")
    private String tradeDate;

    /**
     * 股票名称
     */
    private String name;

    /**
     * 涨跌幅
     */
    @Column(name = "pct_change")
    private Float pctChange;

    /**
     * 收盘价
     */
    private Float close;

    /**
     * 涨跌额
     */
    private Float change;

    /**
     * 开盘价
     */
    private Float open;

    /**
     * 最高价
     */
    private Float high;

    /**
     * 最低价
     */
    private Float low;

    /**
     * 昨收价
     */
    @Column(name = "pre_close")
    private Float preClose;

    /**
     * 量比
     */
    @Column(name = "vol_ratio")
    private Float volRatio;

    /**
     * 换手率
     */
    @Column(name = "turn_over")
    private Float turnOver;

    /**
     * 振幅
     */
    private Float swing;

    /**
     * 成交量
     */
    private Float vol;

    /**
     * 成交额
     */
    private Float amount;

    /**
     * 内盘（主动卖，手）
     */
    private Float selling;

    /**
     * 外盘（主动买， 手）
     */
    private Float buying;

    /**
     * 总股本(万)
     */
    @Column(name = "total_share")
    private Float totalShare;

    /**
     * 流通股本(万)
     */
    @Column(name = "float_share")
    private Float floatShare;

    /**
     * 市盈(动)
     */
    private Float pe;

    /**
     * 所属行业
     */
    private String industry;

    /**
     * 所属地域
     */
    private String area;

    /**
     * 流通市值
     */
    @Column(name = "float_mv")
    private Float floatMv;

    /**
     * 总市值
     */
    @Column(name = "total_mv")
    private Float totalMv;

    /**
     * 平均价
     */
    @Column(name = "avg_price")
    private Float avgPrice;

    /**
     * 强弱度(%)
     */
    private Float strength;

    /**
     * 活跃度(%)
     */
    private Float activity;

    /**
     * 笔换手
     */
    @Column(name = "avg_turnover")
    private Float avgTurnover;

    /**
     * 攻击波(%)
     */
    private Float attack;

    /**
     * 近3月涨幅
     */
    @Column(name = "interval_3")
    private Float interval3;

    /**
     * 近6月涨幅
     */
    @Column(name = "interval_6")
    private Float interval6;

    public FBakDaily(Long tid, String tsCode, String tradeDate, String name, Float pctChange, Float close, Float change, Float open, Float high, Float low, Float preClose, Float volRatio, Float turnOver, Float swing, Float vol, Float amount, Float selling, Float buying, Float totalShare, Float floatShare, Float pe, String industry, String area, Float floatMv, Float totalMv, Float avgPrice, Float strength, Float activity, Float avgTurnover, Float attack, Float interval3, Float interval6) {
        this.tid = tid;
        this.tsCode = tsCode;
        this.tradeDate = tradeDate;
        this.name = name;
        this.pctChange = pctChange;
        this.close = close;
        this.change = change;
        this.open = open;
        this.high = high;
        this.low = low;
        this.preClose = preClose;
        this.volRatio = volRatio;
        this.turnOver = turnOver;
        this.swing = swing;
        this.vol = vol;
        this.amount = amount;
        this.selling = selling;
        this.buying = buying;
        this.totalShare = totalShare;
        this.floatShare = floatShare;
        this.pe = pe;
        this.industry = industry;
        this.area = area;
        this.floatMv = floatMv;
        this.totalMv = totalMv;
        this.avgPrice = avgPrice;
        this.strength = strength;
        this.activity = activity;
        this.avgTurnover = avgTurnover;
        this.attack = attack;
        this.interval3 = interval3;
        this.interval6 = interval6;
    }

    public FBakDaily() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取股票代码
     *
     * @return ts_code - 股票代码
     */
    public String getTsCode() {
        return tsCode;
    }

    /**
     * 设置股票代码
     *
     * @param tsCode 股票代码
     */
    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    /**
     * 获取交易日期
     *
     * @return trade_date - 交易日期
     */
    public String getTradeDate() {
        return tradeDate;
    }

    /**
     * 设置交易日期
     *
     * @param tradeDate 交易日期
     */
    public void setTradeDate(String tradeDate) {
        this.tradeDate = tradeDate;
    }

    /**
     * 获取股票名称
     *
     * @return name - 股票名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置股票名称
     *
     * @param name 股票名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取涨跌幅
     *
     * @return pct_change - 涨跌幅
     */
    public Float getPctChange() {
        return pctChange;
    }

    /**
     * 设置涨跌幅
     *
     * @param pctChange 涨跌幅
     */
    public void setPctChange(Float pctChange) {
        this.pctChange = pctChange;
    }

    /**
     * 获取收盘价
     *
     * @return close - 收盘价
     */
    public Float getClose() {
        return close;
    }

    /**
     * 设置收盘价
     *
     * @param close 收盘价
     */
    public void setClose(Float close) {
        this.close = close;
    }

    /**
     * 获取涨跌额
     *
     * @return change - 涨跌额
     */
    public Float getChange() {
        return change;
    }

    /**
     * 设置涨跌额
     *
     * @param change 涨跌额
     */
    public void setChange(Float change) {
        this.change = change;
    }

    /**
     * 获取开盘价
     *
     * @return open - 开盘价
     */
    public Float getOpen() {
        return open;
    }

    /**
     * 设置开盘价
     *
     * @param open 开盘价
     */
    public void setOpen(Float open) {
        this.open = open;
    }

    /**
     * 获取最高价
     *
     * @return high - 最高价
     */
    public Float getHigh() {
        return high;
    }

    /**
     * 设置最高价
     *
     * @param high 最高价
     */
    public void setHigh(Float high) {
        this.high = high;
    }

    /**
     * 获取最低价
     *
     * @return low - 最低价
     */
    public Float getLow() {
        return low;
    }

    /**
     * 设置最低价
     *
     * @param low 最低价
     */
    public void setLow(Float low) {
        this.low = low;
    }

    /**
     * 获取昨收价
     *
     * @return pre_close - 昨收价
     */
    public Float getPreClose() {
        return preClose;
    }

    /**
     * 设置昨收价
     *
     * @param preClose 昨收价
     */
    public void setPreClose(Float preClose) {
        this.preClose = preClose;
    }

    /**
     * 获取量比
     *
     * @return vol_ratio - 量比
     */
    public Float getVolRatio() {
        return volRatio;
    }

    /**
     * 设置量比
     *
     * @param volRatio 量比
     */
    public void setVolRatio(Float volRatio) {
        this.volRatio = volRatio;
    }

    /**
     * 获取换手率
     *
     * @return turn_over - 换手率
     */
    public Float getTurnOver() {
        return turnOver;
    }

    /**
     * 设置换手率
     *
     * @param turnOver 换手率
     */
    public void setTurnOver(Float turnOver) {
        this.turnOver = turnOver;
    }

    /**
     * 获取振幅
     *
     * @return swing - 振幅
     */
    public Float getSwing() {
        return swing;
    }

    /**
     * 设置振幅
     *
     * @param swing 振幅
     */
    public void setSwing(Float swing) {
        this.swing = swing;
    }

    /**
     * 获取成交量
     *
     * @return vol - 成交量
     */
    public Float getVol() {
        return vol;
    }

    /**
     * 设置成交量
     *
     * @param vol 成交量
     */
    public void setVol(Float vol) {
        this.vol = vol;
    }

    /**
     * 获取成交额
     *
     * @return amount - 成交额
     */
    public Float getAmount() {
        return amount;
    }

    /**
     * 设置成交额
     *
     * @param amount 成交额
     */
    public void setAmount(Float amount) {
        this.amount = amount;
    }

    /**
     * 获取内盘（主动卖，手）
     *
     * @return selling - 内盘（主动卖，手）
     */
    public Float getSelling() {
        return selling;
    }

    /**
     * 设置内盘（主动卖，手）
     *
     * @param selling 内盘（主动卖，手）
     */
    public void setSelling(Float selling) {
        this.selling = selling;
    }

    /**
     * 获取外盘（主动买， 手）
     *
     * @return buying - 外盘（主动买， 手）
     */
    public Float getBuying() {
        return buying;
    }

    /**
     * 设置外盘（主动买， 手）
     *
     * @param buying 外盘（主动买， 手）
     */
    public void setBuying(Float buying) {
        this.buying = buying;
    }

    /**
     * 获取总股本(万)
     *
     * @return total_share - 总股本(万)
     */
    public Float getTotalShare() {
        return totalShare;
    }

    /**
     * 设置总股本(万)
     *
     * @param totalShare 总股本(万)
     */
    public void setTotalShare(Float totalShare) {
        this.totalShare = totalShare;
    }

    /**
     * 获取流通股本(万)
     *
     * @return float_share - 流通股本(万)
     */
    public Float getFloatShare() {
        return floatShare;
    }

    /**
     * 设置流通股本(万)
     *
     * @param floatShare 流通股本(万)
     */
    public void setFloatShare(Float floatShare) {
        this.floatShare = floatShare;
    }

    /**
     * 获取市盈(动)
     *
     * @return pe - 市盈(动)
     */
    public Float getPe() {
        return pe;
    }

    /**
     * 设置市盈(动)
     *
     * @param pe 市盈(动)
     */
    public void setPe(Float pe) {
        this.pe = pe;
    }

    /**
     * 获取所属行业
     *
     * @return industry - 所属行业
     */
    public String getIndustry() {
        return industry;
    }

    /**
     * 设置所属行业
     *
     * @param industry 所属行业
     */
    public void setIndustry(String industry) {
        this.industry = industry;
    }

    /**
     * 获取所属地域
     *
     * @return area - 所属地域
     */
    public String getArea() {
        return area;
    }

    /**
     * 设置所属地域
     *
     * @param area 所属地域
     */
    public void setArea(String area) {
        this.area = area;
    }

    /**
     * 获取流通市值
     *
     * @return float_mv - 流通市值
     */
    public Float getFloatMv() {
        return floatMv;
    }

    /**
     * 设置流通市值
     *
     * @param floatMv 流通市值
     */
    public void setFloatMv(Float floatMv) {
        this.floatMv = floatMv;
    }

    /**
     * 获取总市值
     *
     * @return total_mv - 总市值
     */
    public Float getTotalMv() {
        return totalMv;
    }

    /**
     * 设置总市值
     *
     * @param totalMv 总市值
     */
    public void setTotalMv(Float totalMv) {
        this.totalMv = totalMv;
    }

    /**
     * 获取平均价
     *
     * @return avg_price - 平均价
     */
    public Float getAvgPrice() {
        return avgPrice;
    }

    /**
     * 设置平均价
     *
     * @param avgPrice 平均价
     */
    public void setAvgPrice(Float avgPrice) {
        this.avgPrice = avgPrice;
    }

    /**
     * 获取强弱度(%)
     *
     * @return strength - 强弱度(%)
     */
    public Float getStrength() {
        return strength;
    }

    /**
     * 设置强弱度(%)
     *
     * @param strength 强弱度(%)
     */
    public void setStrength(Float strength) {
        this.strength = strength;
    }

    /**
     * 获取活跃度(%)
     *
     * @return activity - 活跃度(%)
     */
    public Float getActivity() {
        return activity;
    }

    /**
     * 设置活跃度(%)
     *
     * @param activity 活跃度(%)
     */
    public void setActivity(Float activity) {
        this.activity = activity;
    }

    /**
     * 获取笔换手
     *
     * @return avg_turnover - 笔换手
     */
    public Float getAvgTurnover() {
        return avgTurnover;
    }

    /**
     * 设置笔换手
     *
     * @param avgTurnover 笔换手
     */
    public void setAvgTurnover(Float avgTurnover) {
        this.avgTurnover = avgTurnover;
    }

    /**
     * 获取攻击波(%)
     *
     * @return attack - 攻击波(%)
     */
    public Float getAttack() {
        return attack;
    }

    /**
     * 设置攻击波(%)
     *
     * @param attack 攻击波(%)
     */
    public void setAttack(Float attack) {
        this.attack = attack;
    }

    /**
     * 获取近3月涨幅
     *
     * @return interval_3 - 近3月涨幅
     */
    public Float getInterval3() {
        return interval3;
    }

    /**
     * 设置近3月涨幅
     *
     * @param interval3 近3月涨幅
     */
    public void setInterval3(Float interval3) {
        this.interval3 = interval3;
    }

    /**
     * 获取近6月涨幅
     *
     * @return interval_6 - 近6月涨幅
     */
    public Float getInterval6() {
        return interval6;
    }

    /**
     * 设置近6月涨幅
     *
     * @param interval6 近6月涨幅
     */
    public void setInterval6(Float interval6) {
        this.interval6 = interval6;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", tsCode=").append(tsCode);
        sb.append(", tradeDate=").append(tradeDate);
        sb.append(", name=").append(name);
        sb.append(", pctChange=").append(pctChange);
        sb.append(", close=").append(close);
        sb.append(", change=").append(change);
        sb.append(", open=").append(open);
        sb.append(", high=").append(high);
        sb.append(", low=").append(low);
        sb.append(", preClose=").append(preClose);
        sb.append(", volRatio=").append(volRatio);
        sb.append(", turnOver=").append(turnOver);
        sb.append(", swing=").append(swing);
        sb.append(", vol=").append(vol);
        sb.append(", amount=").append(amount);
        sb.append(", selling=").append(selling);
        sb.append(", buying=").append(buying);
        sb.append(", totalShare=").append(totalShare);
        sb.append(", floatShare=").append(floatShare);
        sb.append(", pe=").append(pe);
        sb.append(", industry=").append(industry);
        sb.append(", area=").append(area);
        sb.append(", floatMv=").append(floatMv);
        sb.append(", totalMv=").append(totalMv);
        sb.append(", avgPrice=").append(avgPrice);
        sb.append(", strength=").append(strength);
        sb.append(", activity=").append(activity);
        sb.append(", avgTurnover=").append(avgTurnover);
        sb.append(", attack=").append(attack);
        sb.append(", interval3=").append(interval3);
        sb.append(", interval6=").append(interval6);
        sb.append("]");
        return sb.toString();
    }
}